package com.xiaoke.java2;

/**
 * @author yd
 * @version 1.0
 * @date 2022/1/13 0:09
 */


@FunctionalInterface
interface Func{
    public boolean func(String str);
}


public class Lambda {
    public void lambda(Func func){
        return;
    }

    public static void main(String[] args) {
        Lambda lambda = new Lambda();
        Func func = s ->{
          return true;
        };
        lambda.lambda(func);

        lambda.lambda(s ->{
            return true;
        });


    }
}


